<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all">
    <script src="../../layui/layui.js" charset="utf-8"></script>
    <script  type ="text/javascript" src="../../res/js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src ="../../res/js/Tools.js"></script>
    <title>审核意见</title>
</head>
<body>
<table class="layui-hide" id="auditTab"></table>
</body>
<script>
    layui.use('table', function(){
        var table = layui.table;
        table.render({
            elem: '#auditTab'
            ,url:'../../../atsAttachmentEmp/findBySaid?saId='+getQueryString("saId")

            ,cols: [[
                {field:'creater', width:"15%", title: '审核人'}
                ,{field:'auTime', width:"20%", title: '审核时间'}
                ,{field:'auditState', width:"15%", title: '审核状态',templet : function(d){
                        if(d.auditState==10){
                            return '<a class="layui-btn layui-btn-xs layui-btn-warm" href="javascript:void(0)">申请</a>';
                        }else if(d.auditState==20){
                            return '<a class="layui-btn layui-btn-xs layui-btn-danger" href="javascript:void(0)">中心领导不同意</a>';
                        }else if(d.auditState==21){
                            return'<a class="layui-btn layui-btn-xs " href="javascript:void(0)" >中心领导同意</a>';
                        }else{
                            return d.auditState;
                        }
                    } }
                ,{field:'auExp', width:"50%", title: '审核意见'}

            ]]
            ,skin: 'nob'
            ,even: true
        });
    });
</script>
</html>